package com.jeff.tianti.cms.dao;

import com.jeff.tianti.cms.entity.ConsultCategory;
import com.jeff.tianti.common.dao.CommonDao;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author liuyi
 * @desc ConsultCategoryDao接口 
 * @date 2019-06-28
 */
public interface ConsultCategoryDao extends ConsultCategoryDaoCustom,CommonDao<ConsultCategory,String>{
    @Query(" from ConsultCategory c where c.deleteFlag = 0  ")
    List<ConsultCategory> findAllNoDel();

    @Query(" from ConsultCategory c where c.cmsId = ?1 and c.deleteFlag = 0  ")
    List<ConsultCategory> findConsultCategoryById(String id);
}